package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._15组合模式._1基本代码;

abstract class Component{
    protected String name;
    public Component(String name){
        this.name = name;
    }

    public abstract void add(Component component);
    public abstract void remove(Component component);
    public abstract void display(int depth);
}
